export function ChangeBaseToBlob(base64) {
    console.log(base64,"base")
  // 将 base64 转换为 Blob
  var arr = base64.split(",");
  console.log(arr,"arr")
  let mime = arr[0].match(/:(.*?);/)[1];
  console.log(mime,"mine")
  let bstr = atob(arr[1]);
  console.log(bstr.length, "bstr");
  let n = bstr.length;
  let u8arr = new Uint8Array(n);
  while (n--) {
    u8arr[n] = bstr.charCodeAt(n);
  }
  return new Blob([u8arr], {
    type: mime,
  });
}
